<?php echo $this->render($this->includeDir . '/toolbar.php');?>
<?php 
	$config = new Zendvn_Controller_Config(array('module'=>$this->arrParam['module'],
			'fileConfig'=>'doctor.ini'));
	$pictureConfig = $config->getConfig('doctor');
	$name 			= Zendvn_Filter_Filter::filterContent($this->Item['name'],'filter');
	$position		= Zendvn_Filter_Filter::filterContent($this->Item['position'],'filter');
	
	$content		= Zendvn_Filter_Filter::filterContent($this->Item['content'],'filter');
	$description	= Zendvn_Filter_Filter::filterContent($this->Item['description'],'filter');
	$html_descript	= Zendvn_Filter_Filter::filterContent($this->Item['html_descript'],'filter');
	$html_keyword	= Zendvn_Filter_Filter::filterContent($this->Item['html_keyword'],'filter');
	
	if(file_exists($pictureConfig['thumbDir'] . '/' . $this->Item['picture']) &&  !empty($this->Item['picture'])){
		$pictureUrl 	= $pictureConfig['thumbUrl'] . '/' . $this->Item['picture'];
		$pictureUrlOrginal = $pictureConfig['uploadUrl'] . '/' . $this->Item['picture'];
	}else{
		$pictureUrlOrginal = $pictureUrl = FILE_URL . '/images/no-image.png';
	}
		
	$picture		= '<a href="' . $pictureUrlOrginal . '" onclick="return fancyBox(this)"><img src="' . $pictureUrl . '" alt="" width="180" /></a>';
	
	$img = ($this->Item['status'] == 'active') ? 'active.png' : 'inactive.png';
	$src = "images/small-icons/" . $img;
	$status = '<img src="' . $src . '" />';
					 
	$arrRow = array(
					array('label'=>$this->translate('Avatar'),'info'=>$picture),	
					array('label'=>$this->translate('Họ và tên'),'info'=>$name),	
					array('label'=>$this->translate('Chức vụ'),'info'=>$position),	
					array('label'=>$this->translate('Mô tả'),'info'=>$description),
					array('label'=>$this->translate('Nội dung giới thiệu'),'info'=>$content),
					array('label'=>$this->translate('Mô tả nội dung SEO'),'info'=>$html_descript),
					array('label'=>$this->translate('Từ khoá SEO'),'info'=>$html_keyword),
					array('label'=>$this->translate('Trạng thái'),'info'=>$status),
				);
?>
<div id="element-box">
	<div class="m">
		<div class="form-table">
            	<fieldset class="admin-fieldset">
                <legend class="admin-legend">Form Detail</legend>
            	<table width="100%" border="0">
                	<?php echo $this->partialLoop('row-info.php',$arrRow);?>
                </table>
                <div class="clr"></div>
                </fieldset>
            </div>
            <div class="clr"></div>
	</div>
</div>
